package com.zjl.springmvc.controller.xxxBody;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 八、HttpMessageConverter
 * HttpMessageConverter,报文信息转换器，将请求报文转换为Java对象，
 *          或将Java对象转换为响应报文
 * HttpMessageConverter提供了两个注解和两个类型:
 *       @RequestBody
 *       @ResponseBody
 *       RequestEntity
 *       ResponseEntity
 */
@Controller
public class Main {
    @RequestMapping("/body")
    public String body(){
        return "body";
    }
}
